<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>InputNumber 计数器</title>
    <script src="js/my_vue2.6.js"></script>
    <link rel="stylesheet" href="element-ui/lib/theme-chalk/index.css">
    <script src="element-ui/lib/index.js"></script>
</head>
<body>
<div id="div">
    <el-input-number v-model="num" :min="1" :max="10" label="描述文字"></el-input-number>
    <el-button @click="handleChange">点击</el-button>
</div>
</body>
<script>
    new Vue({
        el:"#div",
        data:{
            num:1
        },
        methods:{
            handleChange(){
                alert(this.num);
            }
        }
    })
</script>
</html>